package com.hz.activity7;

import lombok.extern.slf4j.Slf4j;
import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.impl.delegate.ActivityBehavior;
import org.springframework.stereotype.Component;

@Slf4j
@Component("Activity_0b4uax6")
public class MonitorActivityBehavior implements ActivityBehavior {
    @Override
    public void execute(DelegateExecution delegateExecution) {
        String executionId = delegateExecution.getId();
        String processInstanceId = delegateExecution.getProcessInstanceId();
        String processDefinitionId = delegateExecution.getProcessDefinitionId();
        String currentActivityId = delegateExecution.getCurrentActivityId();
        log.info("执行ID: {}, 实例ID: {}, 流程定义: {}, 当前节点: {}",
                executionId, processInstanceId, processDefinitionId, currentActivityId);
    }
}
